var brid = null